//
//  LeveyPopListView.h
//  LeveyPopListViewDemo
//
//  Created by Levey on 2/21/12.
//  Copyright (c) 2012 Levey. All rights reserved.
//


@protocol PushMenuViewDelegate;
@interface PushMenuView : UIView <UITableViewDataSource, UITableViewDelegate>



@property (nonatomic, weak) id<PushMenuViewDelegate> delegate;
@property (nonatomic,strong) NSIndexPath *selectedIndexPath;
@property (nonatomic,strong) UITableView *tableView;
@property (nonatomic,strong) NSMutableArray *options;
// The options is a NSArray, contain some NSDictionaries, the NSDictionary contain 2 keys, one is "img", another is "text".
- (id)initWithFrame:(CGRect)frame;
// If animated is YES, PopListView will be appeared with FadeIn effect.
- (void)showInView:(UIView *)aView animated:(BOOL)animated;
@end

@protocol PushMenuViewDelegate <NSObject>
@optional
- (void)leveyPopListView:(PushMenuView *)popListView didSelectedIndex:(NSInteger)anIndex andParam:(NSDictionary*)param;
- (void)leveyPopListViewDidCancel;
-(void)onclickPushbutton:(int) tag;
@end